package main.controller;

import java.util.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.*;
import org.springframework.http.*;
import org.springframework.data.domain.*;
import org.springframework.web.bind.annotation.*;

import com.justep.cloud.microservice.http.*;
import com.justep.cloud.microservice.*;


import main.service.X5URLConnectionService;


@RestController
public class URLConnectionController extends MicroServiceBaseController {
	private static final Logger logger = LoggerFactory.getLogger(URLConnectionController.class);
	static Map<String, Map<String, Integer>> exceptionStatusMap = new HashMap<String, Map<String, Integer>>();
	static {
		Map<String, Integer> map = new HashMap<String, Integer>();
		exceptionStatusMap.put("xiaoyanxmsfzq", map);
	}		
	@Autowired
	@Qualifier("x5URLConnectionService")
	private X5URLConnectionService service;

	//系统生成代码,请不要修改或删除 <actionStart:xiaoyanxmsfzq>
@RequestMapping(value = "/main/urlconnection/xiaoyanxmsfzq", method = RequestMethod.GET)
	public ResponseEntity<String> xiaoyanxmsfzq(


@RequestParam(name = "sNO" ) String sNO,
			@RequestParam(name = "pwd" ) String pwd
) throws Exception {
		try {
String resp = service.xiaoyanxmsfzq(sNO,pwd);
HttpHeaders headers = new HttpHeaders();
headers.putAll(getSystemHeader());
processContentType(headers);
ResponseEntity<String> ret = new ResponseEntity<String>(resp,headers,HttpStatus.OK);
return ret;
		} catch (ActionException ex) {
			ex.setActionName("xiaoyanxmsfzq");
			throw ex;
		}
	}
	//系统生成代码,请不要修改或删除 <actionEnd:xiaoyanxmsfzq>
	@Override
	protected Map<String, Map<String, Integer>> getExceptionStatusMap() {
		return exceptionStatusMap;
	}
}
